import Vue from "vue";
import VueRouter from 'vue-router'
import Home from '@/views/Home'
import News from '@/views/News'
import Sport from '@/views/Sport'
import Thome from '@/views/second/Thome'
import Guonei from '@/views/second/Guonei'
import Guowai from '@/views/second/Guowai'
import Games from '@/views/third/Games'
import Lanqiu from '@/views/third/Lanqiu'
import Run from '@/views/third/Run'
Vue.use(VueRouter)
export default new VueRouter({
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: Home,
        },
        {
            path: '/news',
            component: News,
        },
        {
            path: '/sport',
            component: Sport,
            redirect: '/sport/thome',
            children: [{
                path: 'thome',
                component: Thome,
            }, {
                path: 'guonei',
                component: Guonei,
                children: [{
                    path: 'lanqiu',
                    component: Lanqiu
                }, {
                    path: 'games',
                    component: Games
                }, {
                    path: 'run',
                    component: Run
                }]
            }, {
                path: 'guowai',
                component: Guowai,
            }, ]
        }
    ],
})